nteger correct;
default
{
    state_entry()
    {
        //1 = correct 0 = incorrect
        correct =1;
        llSetTimerEvent(1*60);
    }

    touch_start(integer total_number)
    {
        if(correct == 1){
            llSay(0, "Congratulations");
            key id ;
            integer i = 0;
            for(; i<total_number; ++i)
                id = llDetectedKey(i);
            llGiveInventory(id,llGetInventoryName(INVENTORY_OBJECT,0));
        }
        else{
            llSay(0, "Sorry, Wrong Answer");
        }
    }
    
    timer(){
        llDie();
    }
    
}

